<template>
    <div class="open" @click="opendcx">Xd</div>
</template>
<script setup>
import {useRouter} from 'vue-router'
const router=useRouter()
function opendcx(){
    console.log(123)
    router.push('/home')
}
</script>
<style lang="less">
.open{
    width: 30px;
    height: 30px;
}
</style>